/*
 * @Author: taosong 2289713738@qq.com
 * @Date: 2024-01-02 20:23:21
 * @LastEditors: taosong 2289713738@qq.com
 * @LastEditTime: 2024-01-02 20:31:46
 * @FilePath: \ele-h5\src\use\useExpose.ts
 * @Description:
 *
 * Copyright (c) 2024 by ${git_name_email}, All Rights Reserved.
 */
import { getCurrentInstance } from 'vue'
import { extend } from '@/utils/basic'

export const useExpose = <T = Record<string, any>>(apis: T) => {
  // 获取组件实例
  const instance = getCurrentInstance()

  if (instance) {
    extend(instance, apis)
  }
}
